`include "defines.v"
module inst_rom(
	input wire ce,
	input wire[31:0] addr,
	output reg[31:0] inst
);
	reg[31:0] inst_mem[`InstMemCapacity-1 : 0];
	always @(*)
		if(ce == `ChipDisable)
			inst = `ZeroWord;
		else
			inst = inst_mem[addr[`InstMemAddrWidth-1 : 2]];
			
	initial
		$readmemh("inst_rom.txt", inst_mem); 
endmodule
